/**
 * 登陆用户名与密码非空验证 vsk 20110527
 */
function checkLogin(){
	if(document.getElementById("username").value.trim().length<=0 || document.getElementById("userpass").value.trim().length<=0){
		alert('用户名或密码不能为空,请检查后再提交!');
		document.getElementById("username").focus();
		return false;
	}
	document.getElementById("loginform").submit();
}//end function checkLogin
/**
 * 提交登陆页 兼容ie8 firefox4 opera11 chrome13 vsk 20110527
 */
function submitLogin(){
	if(detectBrower().toLowerCase().indexOf('ie')>=0)
		if(window.event.keyCode==13) checkLogin();	
}
/**
 * 提交form 兼容ie8 firefox4 opera11 chrome13 vsk 20110527
 */
function submitForm(obj){
	if(detectBrower().toLowerCase().indexOf('ie')>=0)
		if(window.event.keyCode==13) obj.submit();	
}
/**
 *关闭窗口 兼容ie8 firefox4 opera11不兼容chrome13 vsk20110531 
 */
function exitLogin(){
	window.open('','_parent','');  
	window.close();  
}